package com.chen.fegin;

import com.chen.config.auth.OAuth2FeignConfig;
import com.chen.dto.AdminUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Date: 2021/5/12 4:17 PM
 * @Version 1.0
 */
@FeignClient(value = "admin-server",
        configuration = OAuth2FeignConfig.class,
        path = "/users")
public interface AdminUserFegin {

    @GetMapping("/getAdminUser")
    Map<Long, AdminUserDto> getAdminUser(@RequestParam("ids") List<Long> ids);

}
